package io.github.chutian0610.sqlparser.token

import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe

class WhiteSpaceEnumTest : StringSpec({
    "Space should print ' ' when call toString method" {
        val item = WhiteSpaceEnum.Space
        item.toString() shouldBe (" ")
    }
    "NewLine should print '\n' when call toString method" {
        val item = WhiteSpaceEnum.NewLine
        item.toString() shouldBe ("\n")
    }
    "Tab should print '\t' when call toString method" {
        val item = WhiteSpaceEnum.Tab
        item.toString() shouldBe ("\t")
    }
    "SingleLineComment(//,hello) should print '// hello' when call toString method" {
        val item = WhiteSpaceEnum.SingleLineComment("//", "hello")
        item.toString() shouldBe ("// hello")
    }
    "MultiLineComment(/*,hello,*/) should  print '/* hello */' when call toString method" {
        val item = WhiteSpaceEnum.MultiLineComment("/*", "hello", "*/")
        item.toString() shouldBe ("/* hello */")
    }
})